package com.gome.mapper;

import com.gome.entity.Role;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface RoleMapper {

    List<Role> queryRoles(Map map);

    Role queryRoleWithMenu(String ocRolebm);

    void addRole(Role role);

    Role queryRoleByRole(Role role);

    void deleteRole(String ocRolebm);

    void updateRole(Role role);

    List<Role> queryValidRoles();
}
